package com.sys.server.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "secondreply")
@ApiModel(value = "讨论区-二级回复表")
public class SecondreplyEntity implements Serializable {

    @TableId(value = "r2id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long r2id;
    @ApiModelProperty(value = "内容")
    private String maintext;
    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reltime;
    @ApiModelProperty(value = "对应一级回复编号")
    private Long r1id;
    @ApiModelProperty(value = "发布用户")
    private String reluser;
    private String repuser;

}
